//
//  PriceRecordTableViewCell.m
//  YJRenter
//
//  Created by 文彬 on 2018/7/11.
//  Copyright © 2018年 文彬. All rights reserved.
//

#import "PriceRecordTableViewCell.h"

@implementation PriceRecordTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    float width  = SCREEN_WIDTH/4;
    [self.timeLabel makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(@0);
        make.centerY.equalTo(self.centerY);
        make.width.equalTo(@(width));
        make.height.equalTo(@25);
    }];
    [self.priceLabel makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.timeLabel.left);
        make.centerY.equalTo(self.centerY);
        make.width.equalTo(@(width));
        make.height.equalTo(@25);
    }];
    
    [self.numberLabel makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.priceLabel.left);
        make.centerY.equalTo(self.centerY);
        make.width.equalTo(@(width));
        make.height.equalTo(@25);
    }];
    
    [self.statueLabel makeConstraints:^(MASConstraintMaker *make) {
        make.width.equalTo(@40);
        make.height.equalTo(@20);
        make.centerY.equalTo(self.centerY);
        make.left.equalTo(@((width-40)/2));
    }];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
